import {requestService} from '/src/utils/request'

//查询协议实例列表
export function getAgreementExampleList() {
    return requestService({
        url: '/xiaozhen-system/cmdbExample/selectCmdbExampleList',
        method: 'get'
    })
}

//添加协议实例
export function addAgreementExample(data) {
    return requestService({
        url: '/xiaozhen-system/cmdbExample/addCmdbExample',
        method: 'post',
        data: data
    })
}

//修改协议实例
export function updateAgreementExample(data) {
    return requestService({
        url: '/xiaozhen-system/cmdbExample/updateCmdbExample',
        method: 'put',
        data: data
    })
}

//删除协议实例
export function deleteAgreementExample(modelId) {
    return requestService({
        url: '/xiaozhen-system/cmdbExample/' + modelId,
        method: 'delete'
    })
}

//添加或者修改实例属性值列表
export function addAgreementExampleValues(data) {
    return requestService({
        url: '/xiaozhen-system/cmdbExampleValue/addCmdbExampleValues',
        method: 'post',
        data: data
    })
}
